﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="form_sub.ascx.cs" Inherits="vboard_component_board_template_default_form_sub" %>

<div class="form_sub">

	<!-- 모달팝업(업로드) 시작 //-->
	<div id="FileUploading" class="VWebGlobal_MessagePanel">
		<p style="text-align : center;">
			<asp:Image ID="FileUploadingImage" runat="server" ImageUrl="~/vboard/common/image/loader.gif" ImageAlign="Top" AlternateText="FileUploading..." /><br />
			<%= GetLocalResourceObject("FileUploadingDescription").ToString() %>
		</p>
	</div>
	<!-- 모달팝업(업로드) 끝 //-->

	<div class="CommonBox">
		<div class="Content">

			<dl class="VGlobal_FormFieldDL80">
				<dt><%= GetLocalResourceObject("Category_Label").ToString()%></dt>
				<dd>
					<asp:DropDownList ID="CategoryDropDownList" runat="server" CssClass="VWebGlobal_TextBox" />
					<asp:RequiredFieldValidator ID="CategoryRequiredFieldValidator" runat="server" Display="None" ControlToValidate="CategoryDropDownList" ErrorMessage="<%$ Resources:VGlobalResources, Board_Validate_Category_Select %>" SetFocusOnError="true" />
					<ajaxToolkit:ValidatorCalloutExtender ID="CategoryRequiredFieldValidatorCalloutExtender" runat="Server" TargetControlID="CategoryRequiredFieldValidator" CssClass="VWebGlobal_ValidatorcalloutNone" Width="250px" HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
				</dd>

				<dt><%= GetLocalResourceObject("Title_Label").ToString()%></dt>
				<dd>
					<asp:TextBox ID="TitleTextBox" runat="server" CssClass="VWebGlobal_TextBox" Width="90%" MaxLength="300" />
					<div>
						<asp:RequiredFieldValidator ID="TitleTextBoxRequiredFieldValidator" runat="server" Display="None" ControlToValidate="TitleTextBox" ErrorMessage="<%$ Resources:VGlobalResources, Board_Validate_ThreadTitle_Insert %>" SetFocusOnError="true" />
						<ajaxToolkit:ValidatorCalloutExtender ID="TitleTextBoxRequiredFieldValidatorCalloutExtender" runat="Server" TargetControlID="TitleTextBoxRequiredFieldValidator" CssClass="VWebGlobal_ValidatorcalloutNone" Width="250px" HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
					</div>
				</dd>

				<dt><%= GetLocalResourceObject("Content_Label").ToString()%></dt>
				<dd>
					<asp:TextBox ID="ContentTextBox" runat="server" CssClass="VWebGlobal_TextBox" TextMode="MultiLine" Rows="10" Width="90%" />
					<div>
						<asp:RequiredFieldValidator ID="ContentTextBoxRequiredFieldValidator" runat="server" Display="None" ControlToValidate="ContentTextBox" ErrorMessage="<%$ Resources:VGlobalResources, Board_Validate_ThreadContent_Insert %>" SetFocusOnError="true" />
						<ajaxToolkit:ValidatorCalloutExtender ID="ContentTextBoxRequiredFieldValidatorCalloutExtender" runat="Server" TargetControlID="ContentTextBoxRequiredFieldValidator" CssClass="VWebGlobal_ValidatorcalloutNone" Width="250px" HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
					</div>
					<div>
						<asp:CheckBox ID="IsHTMLCheckBox" runat="server" Text="<%$ Resources:HtmlCheckBox %>" />
					</div>
				</dd>

				<asp:PlaceHolder ID="VotePlaceHolder" runat="server">
				<dt><%= GetLocalResourceObject("Vote_Label").ToString()%></dt>
				<dd>
					<asp:CheckBox ID="VoteFormCheckBox" runat="server" AutoPostBack="true" Text="작성하기" oncheckedchanged="VoteFormCheckBox_CheckedChanged" />
					<asp:UpdatePanel ID="VoteFormUpdatePanel" runat="server" UpdateMode="Conditional">
						<ContentTemplate>
							<asp:Panel ID="VoteFormPanel" runat="server" Visible="false">
								<%= GetLocalResourceObject("Vote_Description").ToString()%>
								<dl>
									<dt><%= GetLocalResourceObject("Vote_Question_Label").ToString()%></dt>
									<dd>
										<asp:TextBox ID="VoteQuestionTextBox" runat="server" Width="90%" MaxLength="300" CssClass="VWebGlobal_TextBox" />
										<asp:RequiredFieldValidator ID="VoteQuestionTextBoxRequiredFieldValidator" runat="server" Display="None" ControlToValidate="VoteQuestionTextBox" ErrorMessage="[투표질문]을 입력하세요." SetFocusOnError="true" />
										<ajaxToolkit:ValidatorCalloutExtender ID="VoteQuestionTextBoxRequiredFieldValidatorCalloutExtender" runat="Server" TargetControlID="VoteQuestionTextBoxRequiredFieldValidator" CssClass="VWebGlobal_ValidatorcalloutNone" Width="250px" HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
									</dd>

									<dt><%= GetLocalResourceObject("Vote_Answers_Label").ToString()%></dt>
									<dd>
										<div><%= GetLocalResourceObject("Vote_Answers_Description").ToString()%></div>
										<asp:TextBox ID="VoteAnswersTextBox" runat="server" TextMode="MultiLine" Width="90%" Rows="4" CssClass="VWebGlobal_TextBox" />
										<asp:RequiredFieldValidator ID="VoteAnswersTextBoxRequiredFieldValidator" runat="server" Display="None" ControlToValidate="VoteAnswersTextBox" ErrorMessage="[투표답변]을 입력하세요." SetFocusOnError="true" />
										<ajaxToolkit:ValidatorCalloutExtender ID="VoteAnswersTextBoxRequiredFieldValidatorCalloutExtender" runat="Server" TargetControlID="VoteAnswersTextBoxRequiredFieldValidator" CssClass="VWebGlobal_ValidatorcalloutNone" Width="250px" HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
									</dd>

									<dt><%= GetLocalResourceObject("Vote_Options_Label").ToString()%></dt>
									<dd>
										<asp:CheckBox ID="OpeningCheckBox" runat="server" Text="<%$ Resources:OpeningCheckBox_Text %>" />
										<asp:CheckBox ID="MultiSelectionCheckBox" runat="server" Text="<%$ Resources:MultiSelectionCheckBox_Text %>" />
									</dd>

									<dt><%= GetLocalResourceObject("Vote_Begin_Label").ToString()%></dt>
									<dd>
										<asp:TextBox ID="BeginDateTextBox" runat="server" Columns="25" CssClass="VWebGlobal_TextBox" />
										<asp:RequiredFieldValidator ID="BeginDateTextBoxRequiredFieldValidator" runat="server" Display="None" ControlToValidate="BeginDateTextBox" ErrorMessage="[투표시작날짜]을 입력하세요." SetFocusOnError="true" />
										<ajaxToolkit:ValidatorCalloutExtender ID="BeginDateTextBoxRequiredFieldValidatorCalloutExtender" runat="Server" TargetControlID="BeginDateTextBoxRequiredFieldValidator" CssClass="VWebGlobal_ValidatorcalloutNone" Width="250px" HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
										<ajaxToolkit:MaskedEditExtender ID="BeginDateTextBoxMaskedEditExtender" runat="server" TargetControlID="BeginDateTextBox" Mask="9999/99/99 99:99:99" MaskType="DateTime" ErrorTooltipEnabled="True" />
										<ajaxToolkit:MaskedEditValidator ID="BeginDateTextBoxMaskedEditValidator" runat="server" Display="None" SetFocusOnError="true" ControlToValidate="BeginDateTextBox" ControlExtender="BeginDateTextBoxMaskedEditExtender" InvalidValueMessage="[투표시작날짜]을 형식을 확인하세요." />
										<ajaxToolkit:ValidatorCalloutExtender ID="BeginDateTextBoxMaskedEditValidatorCalloutExtender" runat="Server" TargetControlID="BeginDateTextBoxMaskedEditValidator" CssClass="VWebGlobal_ValidatorcalloutNone" Width="250px" HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
										<div><%= GetLocalResourceObject("Vote_Begin_Description").ToString()%></div>
									</dd>

									<dt><%= GetLocalResourceObject("Vote_End_Label").ToString()%></dt>
									<dd>
										<asp:TextBox ID="EndDateTextBox" runat="server" Columns="25" CssClass="VWebGlobal_TextBox" />
										<asp:RequiredFieldValidator ID="EndDateTextBoxRequiredFieldValidator" runat="server" Display="None" ControlToValidate="EndDateTextBox" ErrorMessage="[투표종료날짜]을 입력하세요." SetFocusOnError="true" />
										<ajaxToolkit:ValidatorCalloutExtender ID="EndDateTextBoxRequiredFieldValidatorCalloutExtender" runat="Server" TargetControlID="EndDateTextBoxRequiredFieldValidator" CssClass="VWebGlobal_ValidatorcalloutNone" Width="250px" HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
										<ajaxToolkit:MaskedEditExtender ID="EndDateTextBoxMaskedEditExtender" runat="server" TargetControlID="EndDateTextBox" Mask="9999/99/99 99:99:99" MaskType="DateTime" ErrorTooltipEnabled="True" />
										<ajaxToolkit:MaskedEditValidator ID="EndDateTextBoxMaskedEditValidator" runat="server" Display="None" ControlToValidate="EndDateTextBox" ControlExtender="EndDateTextBoxMaskedEditExtender" InvalidValueMessage="[투표종료날짜]을 형식을 확인하세요." />
										<ajaxToolkit:ValidatorCalloutExtender ID="EndDateTextBoxMaskedEditValidatorCalloutExtender" runat="Server" TargetControlID="EndDateTextBoxMaskedEditValidator" CssClass="VWebGlobal_ValidatorcalloutNone" Width="250px" HighlightCssClass="VWebGlobal_ValidatorcalloutTargetHighlight" />
										<div><%= GetLocalResourceObject("Vote_End_Description").ToString()%></div>
									</dd>
								</dl>
							</asp:Panel>
						</ContentTemplate>
						<Triggers>
							<asp:AsyncPostBackTrigger ControlID="VoteFormCheckBox" EventName="CheckedChanged" />
						</Triggers>
					</asp:UpdatePanel>
				</dd>
				</asp:PlaceHolder>

				<dt><%= GetLocalResourceObject("Tag_Label").ToString() %></dt>
				<dd>
					<asp:TextBox ID="TagTextBox" runat="server" CssClass="VWebGlobal_TextBox" Width="90%" MaxLength="300" />
					<div><%= GetLocalResourceObject("Tag_Description").ToString()%></div>
				</dd>

				<dt><%= GetLocalResourceObject("Option_Label").ToString() %></dt>
				<dd>
					<asp:CheckBox ID="AutoMediaFileViewCheckBox" runat="server" Text="<%$ Resources:AutoMediaViewCheckBox %>" Checked="true" />
					<asp:CheckBox ID="IsSecretCheckBox" runat="server" Text="<%$ Resources:SecretCheckBox %>" />
					<asp:CheckBox ID="IsAnnoCheckBox" runat="server" Text="<%$ Resources:AnnoCheckBox %>" Visible="false" />
					<asp:CheckBox ID="IsClosedCheckBox" runat="server" Text="<%$ Resources:CloseCheckBox %>" Visible="false" />
				</dd>

				<dt><%= GetLocalResourceObject("Link_Label").ToString() %></dt>
				<dd>
					<div><%= GetLocalResourceObject("Link_Description").ToString() %></div>
					<asp:TextBox ID="LinkTextBox" runat="server" TextMode="MultiLine" Width="90%" Rows="3" CssClass="VWebGlobal_TextBox" />
				</dd>

				<asp:PlaceHolder ID="FilePlaceHolder" runat="server">
					<dt><%= GetLocalResourceObject("FileLabel").ToString() %></dt>
					<dd>
						<VWeb:MultiFileUploadHelper ID="ThreadMultiFileUpload" runat="server"
							CommonFileImageUrl="<%$ Resources:Symbol_Att_File_ImageUrl %>"
							ImageFileImageUrl="<%$ Resources:Symbol_Att_Image_ImageUrl %>"
							VideoFileImageUrl="<%$ Resources:Symbol_Att_Video_ImageUrl %>"
							AudioFileImageUrl="<%$ Resources:Symbol_Att_Audio_ImageUrl %>"
							FlashFileImageUrl="<%$ Resources:Symbol_Att_Flash_ImageUrl %>"
							AddButtonText="<%$ Resources:Button_Add_Text %>"
							RemoveButtonText="<%$ Resources:Button_Delete_Text %>"
							OnClientAddClick="javascript:VWebGlobal_ShowPanel('FileUploading');"
							OnClientRemoveClick="<%$ Resources:VGlobalResources, General_Script_RemoveConfirm %>"
							OnRowCreated="ThreadMultiFileUploadHelper_RowCreated"
							OnFileAdding="ThreadMultiFileUploadHelper_FileAdding"
							OnFileAdded="ThreadMultiFileUploadHelper_FileAdded"
							OnFileRemoving="ThreadMultiFileUploadHelper_FileRemoving"
							OnFileRemoved="ThreadMultiFileUploadHelper_FileRemoved"
							ListPreviewCellCssClass="ListCell_Preview"
							ListFileInfoCellCssClass="ListCell_Info"
							ListFileLengthCellCssClass="ListCell_Length"
							ListCommandCellCssClass="ListCell_Command"
							ListRowCssClass="ListRow"
							ListCssClass="ListTable"
							FileLabelText=""
							DescriptionLabelText="<%$ Resources:FileDescription_Label %>"
							DescriptionTextBoxColumns="25"
							DescriptionTextBoxCssClass="VWebGlobal_TextBox">
							<PreviewCellTemplate>
								<asp:Image ID="PreviewImage" runat="server" />
							</PreviewCellTemplate>
							<InfoCellTemplate>
								<strong><%# Container.CurrentUploadFileInfo.OriginalFileName %></strong><br />
								Type : <%# Container.CurrentUploadFileInfo.ContentType%><br />
								URL : <asp:TextBox ID="UrlTextBox" runat="server" ReadOnly="true" Columns="30" CssClass="VWebGlobal_TextBox" /><br />
								<%# Container.CurrentUploadFileInfo.Description%>
							</InfoCellTemplate>
						</VWeb:MultiFileUploadHelper>
					</dd>
				</asp:PlaceHolder>

				<dt></dt>
				<dd>
					<asp:ValidationSummary ID="FormValidationSummary" runat="server" ShowMessageBox="true" ShowSummary="false" HeaderText="<%$ Resources:Form_ValidationSummary_HeaderText %>" />
					<asp:ImageButton ID="OKButton" runat="server" AlternateText="<%$ Resources:Button_OK_Text %>" ImageUrl="<%$ Resources:Button_OK_ImageUrl %>" OnClick="OKButton_Click" />
					<asp:HyperLink ID="CancelHyperLink" runat="server" Text="<%$ Resources:Button_Cancel_Text %>" ImageUrl="<%$ Resources:Button_Cancel_ImageUrl %>" />
				</dd>
			</dl>

		</div>
	</div>

</div>